package com.sjl.controller;


import cn.hutool.log.Log;
import cn.hutool.log.StaticLog;
import com.alibaba.dubbo.config.annotation.Reference;
import com.sjl.springboot.domain.CommonResponse;
import com.sjl.springboot.domain.enums.CommonCode;
import com.sjl.springboot.domain.user.SysUser;
import com.sjl.springboot.inface.user.UserService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户登录 退出  注册
 */
@RestController
@Api("用户登录登出 注册相关API")
public class LoginController {

    @Reference
    private UserService userService;

    private Log log = StaticLog.get();

    @PostMapping("/login")
    public Object login(@RequestBody SysUser sysUser) {
        log.info("用户登录 sysuser{}",sysUser);
        CommonResponse response = new CommonResponse(CommonCode.Success_msg);

        return response;
    }



}
